/**
 * 异地备份设置
 * @author rxliuli
 */
class OffSiteBackupSetting {
    /**
     * 构造函数
     * @param {Object} [option] 可选参数
     * @param {String} [option.backupFtpHost] 主机名
     * @param {Number} [option.backupFtpPort] 端口
     * @param {String} [option.backupFtpUser] 用户名
     * @param {String} [option.backupFtpPwd] 密码
     * @param {Number} [option.backupFtpMode] 连接模式
     * @param {String} [option.backupFtpPath] 主目录
     * @param {...Object} [option.args] 其他参数
     */
    constructor({
                    backupFtpHost,
                    backupFtpPort,
                    backupFtpUser,
                    backupFtpPwd,
                    backupFtpMode,
                    backupFtpPath,
                    ...args
                } = {}) {
        this.backupFtpHost = backupFtpHost
        this.backupFtpPort = backupFtpPort
        this.backupFtpUser = backupFtpUser
        this.backupFtpPwd = backupFtpPwd
        this.backupFtpMode = backupFtpMode
        this.backupFtpPath = backupFtpPath
        Object.assign(this, args)
    }
}

